package com.yunji.framework_template.biz.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunji.framework_template.common.web.Page;
import com.yunji.framework_template.orm.persistence.mapper.UserMsgsMapper;
import com.yunji.framework_template.orm.persistence.model.UserMsgs;

/**
 * Created by fenglibin on 2018/11/26.
 */
@Service
public class UserMsgsService {

    @Autowired
    private UserMsgsMapper userMsgsMapper;

    public int deleteByPrimaryKey(Integer id) {
        return userMsgsMapper.deleteByPrimaryKey(id);
    }

    public int insert(UserMsgs record) {
        return userMsgsMapper.insert(record);
    }

    public int insertSelective(UserMsgs record) {
        return userMsgsMapper.insertSelective(record);
    }

    public UserMsgs selectByPrimaryKey(Integer id) {
        return userMsgsMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(UserMsgs record) {
        return userMsgsMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(UserMsgs record) {
        return userMsgsMapper.updateByPrimaryKey(record);
    }

    public List<UserMsgs> selectByCondition(UserMsgs record) {
        return userMsgsMapper.selectByCondition(record);
    }

    public List<UserMsgs> selectAll() {
        return userMsgsMapper.selectAll();
    }

    public List<UserMsgs> selectByPage(Page<UserMsgs> page) {
        return userMsgsMapper.selectByPage(page);
    }

    public Integer count(UserMsgs record) {
        return userMsgsMapper.count(record);
    }

    public int deleteByCondition(UserMsgs record) {
        return userMsgsMapper.deleteByCondition(record);
    }

}
